package com.happy.cat.project.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.happy.cat.framework.aspectj.lang.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


/**
 * 用户粉丝、关注对象 user_official_account
 * 
 * @author verne
 * @date 2020-09-03
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("user_official_account")
@ApiModel(value="用户粉丝、关注对象", description="用户粉丝、关注对象数据")
public class UserOfficialAccount implements Serializable {

private static final long serialVersionUID=1L;


    /** ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 类型0用户/1聊天室/2圈子/3拉黑 */
    @Excel(name = "类型0用户/1聊天室/2圈子/3拉黑")
    @ApiModelProperty(value = "类型0用户/1聊天室/2圈子/3拉黑")
    private Long focusType;

    /** 被关注的id */
    @Excel(name = "被关注的id")
    @ApiModelProperty(value = "被关注的id")
    private Long accountId;

    /** 关注者id */
    @Excel(name = "关注者id")
    @ApiModelProperty(value = "关注者id")
    private Long focusId;

    /** 关注时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "关注时间")
    private Date createTime;
}
